package com.zjj.springmvc.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjj.springmvc.dao.UserDao;
import com.zjj.springmvc.entity.User;
import com.zjj.springmvc.service.UserService;

@Service
public class UserImplService implements UserService {

	@Autowired
	private UserDao userDao;
	
	public List<User> queryUserList() {
		return userDao.queryUserList();
	}
	
	public List<Map<String, Object>> queryUserList(Map<String, String> paramMap) {
		return userDao.queryUserList(paramMap);
	}
	
	@Override
	public List<Map<String, Object>> queryObjectUserList(Map<String, String> paramMap) {
		return userDao.queryObjectUserList(paramMap);
	}
	
	public boolean updateUserInfo() {
		return userDao.updateUserInfo();
	}

	public Map<String, Object> queryProduct() {
		return userDao.queryProduct();
	}
	
}
